#ifndef FAST_COMPUTE_MAYBE_INTERSECTING_AREAS_H_
#define FAST_COMPUTE_MAYBE_INTERSECTING_AREAS_H_
#include<Mesh_IO/Mesh_IO.h>


#ifdef __cplusplus
extern "C" {
#endif

typedef struct Maybe_Intersecting_Areas{
    Node* node1,*node2;
    void* prop;
}Maybe_Intersecting_Areas;

static inline void maybe_intersecting_areas_init(Maybe_Intersecting_Areas* mia)
{
    mia->node1=NULL;mia->node2=NULL;
    mia->prop=NULL;
}

static inline void maybe_intersecting_areas_free(Maybe_Intersecting_Areas*mia)
{
    if(mia==NULL)
    {
        return;
    }
    free_node(mia->node1);free_node(mia->node2);
    free(mia);
}
void simplify_maybe_intersecting_areas(Maybe_Intersecting_Areas* mia);

Node* get_maybe_intersecting_areas_from_nodes(Node*n1,Node*n2);



#ifdef __cplusplus
}
#endif

#endif 